package org.tsing.xxl_job;

import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.stereotype.Component;

/**
 * @Date 2024/8/27 17:26
 * @Author Tsing
 * 尝试编译一个类是实现SmartInitializingSingleton接口，是否会调用afterSingletonsInstantiated()方法
 */
@Component
public class MyJobService implements SmartInitializingSingleton {

    @Override
    public void afterSingletonsInstantiated() {

        System.out.println("MyJobService 调用了afterSingletonsInstantiated（）");
    }
}
